package com.ioc;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

public class loged implements AfterReturningAdvice {
    //切入点后的返回值 returnValue
    //参数args
    //target  执行目标结果
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("执行了"+method.getName()+"返回了,返回的结果为："+returnValue);
    }
}
